{% if current_user.admin %}
<h4>System</h4>
<nav class="nav nav-pills flex-column pb-3">
    <a class="nav-link ml-n4"><i class="fas fa-chevron-circle-right fa-fw"></i> General</a>
    <a class="nav-link {{ 'active' if active_nav == 'system' }}" href="{{ url_for('config.system') }}"><i class="fas fa-stethoscope fa-fw"></i> <span class="pl-2">System</span></a>
    <a class="nav-link {{ 'active' if active_nav == 'dns' }}" href="{{ url_for('config.dns') }}"><i class="fas fa-satellite fa-fw"></i> <span class="pl-2">DNS</span></a>
    <a class="nav-link {{ 'active' if active_nav == 'error_logs' }}" href="{{ url_for('config.logs_errors') }}"><i class="fas fa-exclamation-triangle fa-fw"></i> <span class="pl-2">Error Logs</span></a>
    <a class="nav-link ml-n4"><i class="fas fa-chevron-circle-right fa-fw"></i> Notifications</a>
    <a class="nav-link {{ 'active' if active_nav == 'smtp' }}" href="{{ url_for('config.smtp') }}"><i class="fas fa-at fa-fw"></i> <span class="pl-2">E-mail</span></a>
    <a class="nav-link {{ 'active' if active_nav == 'webpush' }}" href="{{ url_for('config.webpush') }}"><i class="fas fa-bell fa-fw"></i> <span class="pl-2">Web Push</span></a>
    <a class="nav-link {{ 'active' if active_nav == 'slack' }}" href="{{ url_for('config.slack') }}"><i class="fab fa-slack fa-fw"></i> <span class="pl-2">Slack</span></a>
    <a class="nav-link {{ 'active' if active_nav == 'teams' }}" href="{{ url_for('config.teams') }}"><i class="fab fa-microsoft fa-fw"></i> <span class="pl-2">Teams</span></a>
    <a class="nav-link ml-n4"><i class="fas fa-chevron-circle-right fa-fw"></i> Authentication</a>
    <a class="nav-link {{ 'active' if active_nav == 'ldap' }}" href="{{ url_for('config.ldap') }}"><i class="fas fa-passport fa-fw"></i> <span class="pl-2">LDAP</span></a>
    <a class="nav-link {{ 'active' if active_nav == 'radius' }}" href="{{ url_for('config.radius') }}"><i class="fas fa-passport fa-fw"></i> <span class="pl-2">RADIUS</span></a>
    <a class="nav-link ml-n4"><i class="fas fa-chevron-circle-right fa-fw"></i> Accounts</a>
    <a class="nav-link {{ 'active' if active_nav == 'users' }}" href="{{ url_for('config.users') }}"><i class="fas fa-users fa-fw"></i> <span class="pl-2">Users</span></a>
    <a class="nav-link {{ 'active' if active_nav == 'password_complexity' }}" href="{{ url_for('config.password_complexity') }}"><i class="fas fa-puzzle-piece fa-fw"></i> <span class="pl-2">Password Complexity</span></a>
</nav>
{% endif %}

<h4>Account</h4>
<nav class="nav nav-pills flex-column">
    <a class="nav-link {{ 'active' if active_nav == 'profile' }}" href="{{ url_for('config.profile') }}"><i class="fas fa-id-card fa-fw"></i> <span class="pl-2">Profile</span></a>
    <a class="nav-link {{ 'active' if active_nav == 'profile_2fa' }}" href="{{ url_for('config.profile_2fa') }}"><i class="fas fa-user-lock fa-fw"></i> <span class="pl-2">2FA</span></a>
    <a class="nav-link {{ 'active' if active_nav == 'api' }}" href="{{ url_for('config.api') }}"><i class="fas fa-key fa-fw"></i> <span class="pl-2">API Keys</span></a>
</nav>